//
//  ProductSpecDeleteCell.h
//  LazyCat
//
//  Created by Abner on 16/9/22.
//  Copyright © 2016年 zhanshu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AddProduct.h"
@protocol ProductSpecDeleteCellDelegate <NSObject>

-(void)specDeleteBtClicked:(UIButton *)deleteBt;
@end
/**
 *  "添加商品"多规格【有删除】
 */
@interface ProductSpecDeleteCell : UITableViewCell<UITextFieldDelegate>

@property(nonatomic,strong)UILabel *specNameLb;
@property(nonatomic,strong)UILabel *marketPriceLb;
@property(nonatomic,strong)UILabel *salePriceLb;
@property(nonatomic,strong)UILabel *costPriceLb;//成本价
@property(nonatomic,strong)UILabel *lcSalePriceLb;
@property(nonatomic,strong)UILabel *commissionpriceLb;//分销佣金
@property(nonatomic,strong)UILabel *numStockLb;
@property(nonatomic,strong)UILabel *imageLb; //对应图片

@property(nonatomic,strong)UITextField *specNameTf;
@property(nonatomic,strong)UITextField *marketPriceTf;
@property(nonatomic,strong)UITextField *salePriceTf;
@property(nonatomic,strong)UITextField *costPriceTf;//成本价
@property(nonatomic,strong)UITextField *lcSalePriceTf;
@property(nonatomic,strong)UITextField *commissionpriceTf;//分销佣金
@property(nonatomic,strong)UITextField *numStockTf;
@property(nonatomic,strong)UITextField *imageTf; //对应图片
@property(nonatomic,strong)UIButton *arrowBt; //箭头
/** 选择的图片 */
@property(nonatomic,strong)UIImageView *specImgV;
/** 删除按钮 */
@property(nonatomic,strong)UIButton *deleteBT;

/** 规格模型 */
@property(nonatomic,strong)LCProductSpec *aSpec;

/** 跳转到图片选择的block */
@property(nonatomic,copy)void(^ProductSpecDeleteCellArrowBlock)();

@property(nonatomic,assign)id<ProductSpecDeleteCellDelegate> delegate;

/**
 *  给VC传值，需要知道当前row
 */
@property(nonatomic,copy)void(^specDeleteBlock)(LCProductSpec *aSpec,NSInteger currentRow);
/**
 *  给ProductSpecDeleteCell设置数据（扫码或输入条码拉取商品成功）
 *  @param aSpec 规格模型
 *  @param btTag 删除按钮tag(用于点击删除时知道是哪一row)
 */
-(void)setupProductSpecDeleteCell:(LCProductSpec *)aSpec deleteBtTag:(NSInteger)btTag;

+(instancetype)cellWithTableView:(UITableView *)tableView;
@end
